package router

import (
	"github.com/gin-gonic/gin"
	"week1/api"
)

func Router(r *gin.Engine) {

	user := r.Group("/user")
	{
		user.POST("/create", api.CreateUser)
		user.GET("/list", api.GetUserList)
		user.POST("/update", api.UpdateUserInfo)
		user.POST("/delete", api.DeleteUserInfo)
	}

}
